#include <kernel/include/types.h>


int syscall_call(uint32_t call, uint32_t ebx, uint32_t ecx, uint32_t edx)
{
	regs_t reg;
	reg.eax = call;
	reg.ebx = ebx; 
	reg.ecx = ecx; 
	reg.edx = edx; 
	asm("movl %0, %%eax\n\t": : "g" (&reg));
	
	asm ("int %0\n" : : "g" (0x84));
	
	asm ("movl %%eax, %0\n\t" : "=r" (reg.eax));
	return reg.eax;
}


int main(int argc, char **argv)
{
	syscall_call(2, "task caricato da file! syscall test!\n", 0, 0);

	return 0;
}
